package br.com.tcm.dao;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class ConnectionFactory {

	public Connection getConnection()  {
		try {
			try {
				Class.forName("com.mysql.jdbc.Driver").newInstance();
			} catch (InstantiationException e) {
			} catch (IllegalAccessException e) {
			} catch (ClassNotFoundException e) {
			}
			return DriverManager.getConnection("jdbc:mysql://192.168.1.14/JaBiezzaDB","root","Softpol03");
		} catch (SQLException e) {
			throw new RuntimeException(e);
		}
	}
	
}
